package com.example.yls.demoa;

import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by yls on 2018/11/6.
 */

public class MyReceiver extends BroadcastReceiver {

    IOnUpdatListener listener ;
    public MyReceiver(IOnUpdatListener listener) {
        this.listener = listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        listener.updateTime();
    }






}
